{template aljbd:view_header}
<div class="wp cl" id="bdw">
<div class="main" id="goods">

<table cellspacing="0" cellpadding="0" class="fwin" id="imgzoom" style="width:506px;height:514px;position:absolute;display:none;top:400px;left:30%;z-index:11000;"><tbody><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c">
<h3 class="flb"><em>[[[title]]]</em><a target="_blank" href="[[[srcimg]]]" class="originimg"><font color="#568C10">{lang aljbd:goodview_1}</font></a><span><a href="javascript:;" id="fwin_dialog_close" class="flbc" onclick="zoomclose();return false;" title="{lang aljbd:goodview_2}">{lang aljbd:goodview_2}</a></span></h3>
<div class="c altw" style="width:100%">
<div class="box">
<a target="_blank" href="javascript:;" onclick="zoomclose();return false;"><img src="[[[src]]]" alt="[[[title]]]" style="width:100%"></a>
</div>
</div>
</td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></tbody></table> 

<div id="imgzoomhtml" style='display:none'>
<h3 class="flb"><em>[[[title]]]</em><a target="_blank" href="[[[srcimg]]]" class="originimg"><font color="#568C10">{lang aljbd:goodview_1}</font></a></a><span><a href="javascript:;" id="fwin_dialog_close" class="flbc" onclick="zoomclose();return false;" title="{lang aljbd:goodview_2}">{lang aljbd:goodview_2}</a></span></h3>
<div class="c altw" style="width:100%">
<div class="box">
<a target="_blank" href="javascript:;" onclick="zoomclose();return false;"><img src="[[[src]]]" alt="[[[title]]]" style="width:100%"></a>
</div>
</div>
</div>
<div id="append_parent"></div><script>
jq(function(){
var product = jq('#product');
jq('.thumb-list li').mouseover(function(){
var src=jq(this).find('img').attr('data-src');
var srcimg=jq(this).find('img').attr('srcimg');
if (srcimg!='{$noimg}') {
jq(this).addClass('cur').siblings().removeClass('cur');;
jq('#J_PicCover').attr('src',src).attr('srcimg',srcimg);
};
})
})
</script> 
{if $_G['cache']['plugin']['aljgwc'][$pluginid]}
{template aljgwc:aljbd_goodview_body}
{else}
<div id="product" class="cl">
<div class="gallery">
<div class="pic-box"><a onclick="zoomopen(this, jq('#J_PicCover').attr('srcimg'), jq('#J_PicCover').attr('src'), jq('#J_PicCover').attr('alt'))" title="{lang aljbd:s259}" class="pic-link" href="javascript:;" rel="nofollow"><img id="J_PicCover" srcimg="{if $g['pic1']}{$g['pic1']}{else}{$noimg}{/if}" src="{if $g['pic1']}{$g['pic1']}{else}{$noimg}{/if}" alt="{$g['name']}" width="470" ><span class="zoom"> </span></a></div>
<div class="thumb cl">
<div class="thumb-list">
<ul class="cl">


<li class="cur">
<a href="javascript:;">
<img srcimg="{if $g['pic1']}{$g['pic1']}{else}{$noimg}{/if}" data-src="{eval echo $g['pic1']}" src="{if $g['pic1']}{$g['pic1']}{else}{$noimg}{/if}" alt="{$g['name']}"></a>
</li>
{if $g['pic2']}
<li>
<a href="javascript:;">
<img srcimg="{if $g['pic2']}{$g['pic2']}{else}{$noimg}{/if}" data-src="{eval echo $g['pic2']}" src="{if $g['pic2']}{$g['pic2']}{else}{$noimg}{/if}" alt="{$g['name']}" ></a>
</li>
{/if}
{if $g['pic3']}
<li>
<a href="javascript:;">
<img srcimg="{if $g['pic3']}{$g['pic3']}{else}{$noimg}{/if}" data-src="{eval echo $g['pic3']}" src="{if $g['pic3']}{$g['pic3']}{else}{$noimg}{/if}" alt="{$g['name']}" ></a>
</li>
{/if}
{if $g['pic4']}
<li >
<a href="javascript:;">
<img srcimg="{if $g['pic4']}{$g['pic4']}{else}{$noimg}{/if}" data-src="{eval echo $g['pic4']}" src="{if $g['pic4']}{$g['pic4']}{else}{$noimg}{/if}" alt="{$g['name']}"></a>
</li>
{/if}
{if $g['pic5']}
<li class="">
<a href="javascript:;">
<img srcimg="{if $g['pic5']}{$g['pic5']}{else}{$noimg}{/if}" data-src="{if $g['pic5']}{eval echo $g['pic5']}{else}{$noimg}{/if}" src="{if $g['pic5']}{$g['pic5']}{else}{$noimg}{/if}" alt="{$g['name']}"></a>
</li>
{/if}
</ul>
</div>
</div>
</div>
<!--gallery end--><div class="gallery-text">
<h2 class="cl">{$g['name']}</h2><div class="gallery-info">
<p>{eval echo cutstr(strip_tags(preg_replace('/\<img.*?\>/is', '', $g['intro'])),160);}<a onclick="jq('#messages .message_tab h3:eq(1)').click();jq('body,html').animate({scrollTop:jq('#messages').offset().top},200);" href="javascript:;">[{lang aljbd:s260}]</a></p>
</div><div class="buy-box" style="width:100%">
<div class="cl" id="J_BuyBox">
<div class="buy-meta">
{if $g['price1']}
	<p class="price-limit">
		{if $g['price1']}{if $config['isextcredit'] && $config['extcredit']}{$g['price1']}{$_G['setting']['extcredits'][$config['extcredit']]['title']}{else}{$price_unit}{eval echo number_format($g['price1'],2);}{/if}{/if}
	</p>
	<p class="goodprice xg1">
		{if $g['price2']>0}
			{lang aljbd:s261}<s>
			{if $config['isextcredit'] && $config['extcredit']}
				{$g['price2']}{$_G['setting']['extcredits'][$config['extcredit']]['title']}
			{else}
				{$price_unit}{eval echo number_format($g['price2'],2);}
			{/if}</s>
		{/if}
	</p>
{else}<p class="price-limit">{lang aljbd:s271}</p>{/if}
{if file_exists('source/plugin/aljgz/aljgz.inc.php') && $cparray['aljgz']['available'] == 1}
{template aljgz:aljbd_goodsview}
{/if}
</div>
<div class="comment-meta xg1 cl">
<p class="z">{lang aljbd:s262}({$g['view']})</p>
{if $config['alipay'] && $g['price1'] && (TIMESTAMP < $g['endtime'] || $g['endtime']==0)}<a class="y" rel="nofollow" href="plugin.php?id=aljbd&act=trade&gid={$g['id']}" onclick = "showWindow('trade',this.href)">goumai</a>{elseif $config['isextcredit'] && $config['extcredit']}<a target="_blank" href="plugin.php?id=aljbd&act=trade&gid={$g['id']}" class="y" onclick = "showWindow('trade',this.href)" rel="nofollow">goumai</a>{elseif $g['gwurl']}<a target="_blank" href="$g['gwurl']" class="y" rel="nofollow">goumai</a>{/if}
</div>
<div class="comment-meta xg1 cl">
<p class="z">&#21830;&#21697;&#25968;&#37327;&#65306;<font class="lj_ms">{$g['amount']}</font></p>
</div>
{if $g['endtime']}
<div class="comment-meta xg1 cl">
<p class="z">&#21830;&#21697;&#26377;&#25928;&#26399;&#65306;{if TIMESTAMP < $g['endtime']}<font class="lj_ms">{echo gmdate('Y-m-d',$g['endtime'])}</font>{else}<font style="color:red;">&#24050;&#36807;&#26399;</font>{/if}</p>
</div>
{/if}
<div class="comment-meta xg1 cl">
<p class="z" style="overflow: hidden;" title="$bd['addr']">{lang aljbd:s263}<font class="lj_ms">{$bd['addr']}</font></p>
</div>
<div class="comment-meta xg1 cl">
<p class="z">{lang aljbd:s264}<font class="lj_ms">{$bd['tel']}</font></p>
</div>
{if $bd['qq']}
<div class="comment-meta xg1 cl">
<p class="z">QQ&nbsp;:&nbsp;&nbsp;$qq</p>
</div>
{/if}
{if $config['fenxiang1']}
<div class="comment-meta xg1 cl">
$config['fenxiang1']
</div>
{/if}
</div>

</div>

</div>
</div>
{/if}

<div id="messages">
<div class="message_tab cl">
<h3 class="c"><span aria-hidden="true" class="icon-smile" style="padding-right:5px;"></span>{lang aljbd:s265}</h3>
</div>




<script charset="gbk" type="text/javascript">
//	bindform('msgForm');
function zoomopen(obj, srcimg, src, alt){

var imgw= jq('img',obj).width();

var imgh= jq('img',obj).height();
var imgzoomhtml = jq('#imgzoomhtml').html();
var patttitle=/\[\[\[title\]\]\]/ig;
var pattsrc=/\[\[\[src\]\]\]/ig;
var pattsrcimg=/\[\[\[srcimg\]\]\]/ig;
imgzoomhtml = imgzoomhtml.replace(patttitle,alt);
imgzoomhtml = imgzoomhtml.replace(pattsrc,src);
imgzoomhtml = imgzoomhtml.replace(pattsrcimg,srcimg);
console.log(imgh);

jq('#imgzoom .m_c').html(imgzoomhtml);
jq('#imgzoom').css({'width':imgw+136+'px','height':imgh+44+'px'}).show();
}
function zoomclose(){
document.getElementById('imgzoom').style.display = "none";
} 
</script><div class="details c">
<style type="text/css">
	.content img{
		max-width:100%;
	}
	#messages .details .content {
    font-size: 14px;
    overflow: hidden;
    width: 100%;
}
</style>
<div class="content"><p>{$g['intro']}</p></div>
</div>
</div>
<div class="shop_list cl">
<div class="title cl">
<h2><span aria-hidden="true" class="icon-like" style="padding-right:5px;"></span>{lang aljbd:s266}</h2>
<a href="{if $config['isrewrite']}brand_good_{$_GET['bid']}.html{else}plugin.php?id=aljbd&act=good&bid={$bd['id']}{/if}" class="more">{lang aljbd:s267}</a>
</div>
<!--shop new good--><ul>
<!--{eval  $i=1;}-->
{loop $t $gg}
<li <!--{if $i%$li===0}-->class="mr0"<!--{/if}-->>
<div class="thumb"><a href="{if $config['isrewrite']}brand_good_{$gg['bid']}_{$gg[id]}.html{else}plugin.php?id=aljbd&act=goodview&bid={$gg['bid']}&gid={$gg[id]}{/if}" target="_blank"><img alt="$gg['name']" src="{$gg['pic1']}"></a></div>
<h3 class="xi2">
<a title="$gg['name']" href="{if $config['isrewrite']}brand_good_{$gg['bid']}_{$gg[id]}.html{else}plugin.php?id=aljbd&act=goodview&bid={$gg['bid']}&gid={$gg[id]}{/if}" target="_blank">$gg['name']</a>
</h3>
<p class="xg1 mtn cl">
<a target="_blank" title="{eval echo dhtmlspecialchars($bdlist[$gg['bid']]['name'])}" href="{if $config['isrewrite']}brand_shop_{$gg['bid']}.html{else}plugin.php?id=aljbd&act=view&bid={$bd['id']}{/if}" class="z address">{eval echo dhtmlspecialchars($bdlist[$gg['bid']]['name'])}</a>
<span class="y"></span>
</p>
<p class="xi1"><strong>{if $gg['price1']}{if $gg['price1']}{if $config['isextcredit'] && $config['extcredit']}{$gg['price1']}{$_G['setting']['extcredits'][$config['extcredit']]['title']}{else}{$price_unit}{eval echo number_format($gg['price1'],2);}{/if}{/if}{else}{lang aljbd:s268}{/if}</strong>{if $gg['price2']}&nbsp;&nbsp;&nbsp;<s>{if $gg['price2']}{if $config['isextcredit'] && $config['extcredit']}{$gg['price2']}{$_G['setting']['extcredits'][$config['extcredit']]['title']}{else}{$price_unit}{eval echo number_format($gg['price2'],2);}{/if}{/if}</s>{/if}</p>
<p class="s2 xg1 cl">
<span class="z">{eval echo gmdate('Y-m-d',$gg['dateline']+8*3600);}</span>
<span class="y">
<a href="{if $config['isrewrite']}brand_good_{$gg['bid']}_{$gg[id]}.html{else}plugin.php?id=aljbd&act=goodview&bid={$gg['bid']}&gid={$gg[id]}{/if}" target="_blank">{lang aljbd:s269}({$gg['view']})</a>
</span>
</p><!--newcomment-->
<div class="comment cl"></div>
</li>
<!--{eval  $i++;}-->
{/loop}
</ul></div>
{if $_G['cache']['plugin']['aljgwc'][$pluginid]}
<div id="messages">
<div class="message_tab cl">
<h3 class="c">$aljbdlang['template']['comment']</h3>
</div>
<div class="news_msg"><script charset="gbk" type="text/javascript">
function deletecomm(cid,score) {
if(score) {
var from = 'remark';
} else {
var from = 'comm';
}
if (confirm("{lang aljbd:noticeview_6}")){
$("#delitemid_"+from).val(cid);
$("#delMegForm_"+from).submit();
}
return false;
}
</script>
<div class="comment"><!--comment form-->
<style type="text/css">
	#commentmessage_u{border: 1px solid #ddd;
    border-radius: 3px;
    height: 28px;
    line-height: 14px;
    overflow: hidden;
    padding: 10px;
    width: 763px;}
</style>
{if C::t('#aljgwc#aljbd_comment_goods')->fetch_all_by_upid('',$g['id'])}
{loop C::t('#aljgwc#aljbd_comment_goods')->fetch_all_by_upid('',$g['id']) $ask}
<div id="comment{$ask['id']}">
<dl class="commentli cl" id="commentdl{$ask['id']}">
<dt>
<a  href="home.php?mod=space&uid={$ask['uid']}" class="avatar">
<img width="50" height="50" alt="{$ask['username']}" src="{eval echo avatar($ask['uid'],'small',true);}">
</a>
<div class="cominfo cl">
<span class="author z">{$ask['username']}:
</span>
<span class="time y xg1">{eval echo gmdate('Y-m-d H:i:s',$ask['dateline']+8*3600);}</span>
</div>
<div class="comment_score">
<label>
$aljbdlang['template']['Comprehensive_evaluation']{if $ask['overall_ticket'] == 1}$aljbdlang['template']['Praise']{elseif $ask['overall_ticket'] == 2}$aljbdlang['template']['In_the_comments']{elseif $ask['overall_ticket'] == 3}$aljbdlang['template']['Bad']{/if}
<span class="">$aljbdlang['template']['Commodity_satisfaction'] <img src="source/plugin/aljbd/images/{$ask['descriptiongrade']}.gif" style="top:-2px"></span>
<span class="">$aljbdlang['template']['Seller_service'] <img src="source/plugin/aljbd/images/{$ask['deliveryspeed']}.gif" style="top:-2px"></span>
</label>
</div>
</dt>
<dd class="commentcontent">
<p class="new">
{eval echo dhtmlspecialchars($ask['content']);}&nbsp;&nbsp;</p>
<p class="option">
<a href="javascript:;"  class="replylink">{lang aljbd:noticeview_10}</a>
&nbsp;&nbsp;&nbsp;</p>
</dd>

<dd class="">
<div class="replies replies_wp">
<form id="msgForm_remark_recomment_{$ask['id']}" action="plugin.php?id=aljgwc&act=greply" method="post">
<input type="hidden" value="{FORMHASH}" name="formhash">
<label>
<textarea cols="10" rows="5" id="commentmessage_r" name="commentmessage_1"></textarea>
</label>
<div id="ajaxwaitid"></div>
<div class="action cl">
<span id="span_score"></span>
<input type="submit" onclick="ajaxpost('msgForm_remark_recomment_{$ask['id']}','ajaxwaitid');" value="{lang aljbd:noticeview_9}" name="searchbtn" id="submitMsgForm">
<span class="y">{lang aljbd:noticeview_7}<i>140</i>{lang aljbd:noticeview_8}</span><input type="hidden" name="submitcomm" value="submit">
<input type="hidden" value="$_GET['bid']" name="bid" id="bid">
<input type="hidden" size="5" value="$g['id']" name="gid" id="gid">
<input type="hidden" size="5" value="$ask['id']" name="upid" id="upid">
</div>
</form>
{loop C::t('#aljbd#aljbd_comment_goods')->fetch_all_by_upid($ask['id'],$ask['gid']) $reply}
<div class="replyli cl">
<dl>
<dt>
<a  href="home.php?mod=space&uid={$reply['uid']}" class="avatar">
<img width="25" height="25" alt="$reply['username']" src="{eval echo avatar($reply['uid'],'small',true);}">
</a>
<div class="cominfo cl">
<span class="author z">
$reply['username'] $aljbdlang['template']['Yes'] $reply['uusername'] $aljbdlang['template']['say']:
</span>
<span class="time y xg1">{eval echo gmdate('Y-m-d H:i:s',$reply['dateline']+8*3600);}</span>
</div>
</dt>
<dd>
<p class="new">
<span>{eval echo dhtmlspecialchars($reply['content']);}&nbsp;&nbsp;</span>
</p>
{if $reply['uid'] != $_G['uid']}
<p class="option">
<a href="javascript:;"  class="replylink_u">{lang aljbd:noticeview_10}</a>
&nbsp;&nbsp;&nbsp;</p>
{/if}
<div class="replies replies_wp_u" style="display:none">
<form id="msgForm_remark_recomment_{$reply['id']}" action="plugin.php?id=aljgwc&act=greply" method="post">
<input type="hidden" value="{FORMHASH}" name="formhash">
<label>
<textarea cols="10" rows="5" id="commentmessage_u" name="commentmessage_1"></textarea>
</label>
<div id="ajaxwaitid"></div>
<div class="action cl">
<span id="span_score"></span>
<input type="submit" onclick="ajaxpost('msgForm_remark_recomment_{$reply['id']}','ajaxwaitid');" value="{lang aljbd:noticeview_9}" name="searchbtn" id="submitMsgForm">
<span class="y">{lang aljbd:noticeview_7}<i>140</i>{lang aljbd:noticeview_8}</span><input type="hidden" name="submitcomm" value="submit">
<input type="hidden" value="$_GET['bid']" name="bid" id="bid">
<input type="hidden" size="5" value="$g['id']" name="gid" id="gid">
<input type="hidden" size="5" value="$ask['id']" name="upid" id="upid">
<input type="hidden" size="5" value="$reply['id']" name="subcatid" id="subcatid">
</div>
</form>


</div>
</dd>
</dl>
</div>
{/loop}

</div>

</dd>
</dl>
</div>
{/loop}
{else}
$aljbdlang['template']['No_comment']
{/if}
</div>
</dd>
</dl>
</div>

<script charset="gbk" type="text/javascript">
//	bindform('msgForm');
</script></div>
{/if}
</div>

{template aljbd:side}
